package com.mycc.eneity;


/*
* public 访问修饰符 代表公共的
* class  修饰的是Newtitle代表一个类
* Newtitle 代表这个类名
*
* */
public class Newtitle {
    private int id; //新闻编号
    private String titleName; //新闻标题
    private String creater; //创建者


    //有参
    public Newtitle(int id, String titleName, String creater) {
        this.id = id;
        this.titleName = titleName;
        this.creater = creater;
    }
    //无参
    public Newtitle() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitleName() {
        return titleName;
    }

    public void setTitleName(String titleName) {
        this.titleName = titleName;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }
}
